package com.eclipse.e20200125_xml_properties_注解.注解;

import java.sql.DriverManager;
import java.sql.SQLException;

public class 获取数据库连接 {
	public static void main(String[] args) throws SQLException {
		//获取数据库连接
		DriverManager.getConnection("jdbc:mysql://localhost:3306/login?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true", "root", "qq123123");
	}
}
